Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: OpenDoc Class Reference /
Part 1 - Classes and Methods / ODNameResolver


GetContextFromToken

The GetContextFromToken method gets references to the part and the frame in whose context the specified token was created.

void GetContextFromToken(in ODOSLToken token,
                         out ODPart part,
                         out ODFrame frame);
token
A reference to the token to be examined.
part
A reference to the part representing the context for this token.
frame
A reference to the frame representing the context for this token, or kODNULL if the specified part does not have any frames associated with it.
DISCUSSION
The token parameter must be a valid OpenDoc token; you can call the IsODToken method to check whether a token is valid.

This method does not increment the reference count of either the part or the frame in whose context the token was created.

SEE ALSO
The ODNameResolver::CreateSwapToken method (page 422).
The ODNameResolver::IsODToken method (page 425).
"Returning Tokens" on page 428 in OpenDoc Programmer's Guide.
"Other Considerations" on page 430 in OpenDoc Programmer's Guide.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
17 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help